﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类PUSH_INSPECT_NO
     ///</summary>
     public class PUSH_INSPECT_NO
     {
         private string __sCode=string.Empty ;
         private string __sName=string.Empty ;
         private string __sDate=string.Empty ;
         private string __sValue=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public PUSH_INSPECT_NO()
         {
             this.__Changed.Add("sCode",false);
             this.__Changed.Add("sName",false);
             this.__Changed.Add("sDate",false);
             this.__Changed.Add("sValue",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__sCode =string.Empty;
             this.__sName =string.Empty;
             this.__sDate =string.Empty;
             this.__sValue =string.Empty;
             this.__Changed["sCode"] = false;
             this.__Changed["sName"] = false;
             this.__Changed["sDate"] = false;
             this.__Changed["sValue"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[sCode]的数据
         /// </summary>
         public string sCode
         {
              set{ __sCode = value.Replace("'","’"); __Changed["sCode"] = true;}
              get{return __sCode;}
         }
         /// <summary>
         ///设置或获取类中的[sName]的数据
         /// </summary>
         public string sName
         {
              set{ __sName = value.Replace("'","’"); __Changed["sName"] = true;}
              get{return __sName;}
         }
         /// <summary>
         ///设置或获取类中的[sDate]的数据
         /// </summary>
         public string sDate
         {
              set{ __sDate = value.Replace("'","’"); __Changed["sDate"] = true;}
              get{return __sDate;}
         }
         /// <summary>
         ///设置或获取类中的[sValue]的数据
         /// </summary>
         public string sValue
         {
              set{ __sValue = value.Replace("'","’"); __Changed["sValue"] = true;}
              get{return __sValue;}
         }
    }
}
